<!DOCTYPE html>
<html>
<head>
  	<title>进销存管理系统</title>
  	<#import "/common/common.macro.ftl" as netCommon>
	<@netCommon.commonStyle />
	<!-- DataTables -->
  	<link rel="stylesheet" href="${request.contextPath}/static/adminlte/plugins/datatables/dataTables.bootstrap.css">

	<#-- select2
    <link rel="stylesheet" href="${request.contextPath}/static/adminlte/plugins/select2/select2.min.css">
    <script src="${request.contextPath}/static/adminlte/plugins/select2/select2.min.js"></script>
    //$(".select2").select2();
    -->
	<style>
		/*qiulinhe:2016年11月7日13:48:26*/  
		/* dataTables列内容居中 */  
		.table>tbody>tr>td{  
		        text-align:center;  
		}  
		  
		/* dataTables表头居中 */  
		.table>thead:first-child>tr:first-child>th{  
		        text-align:center;  
		}  
		.row {
		  margin-top: 4px;
		  margin-bottom: 4px;
		}
		.summerButton{
			margin-top: 4px;
		}
	</style>
</head>
<body class="hold-transition skin-blue sidebar-mini <#if cookieMap?exists && "off" == cookieMap["adminlte_settings"].value >sidebar-collapse</#if>">
<div class="wrapper">
	<!-- header -->
	<@netCommon.commonHeader />
	<!-- left -->
	<@netCommon.commonLeft "quality" />
	
	<!-- Content Wrapper. Contains page content -->
	<div class="content-wrapper">
		<!-- Content Header (Page header) -->
		<section class="content-header">
			<h1>质量标准管理</h1>
		</section>
		
		<!-- Main content -->
	    <section class="content">
	   	 <div class="box box-primary">
	   	 	<div class="box-body">
		    	<div class="row">
		    		<div class="col-xs-offset-2 col-xs-4">
		              	<div class="input-group">
		                	<span class="input-group-addon">质量标准</span>
	                		<input type="text" class="form-control input-sm" id="quality" autocomplete="on" name="quality">
		              	</div>
		            </div>
	                <div class="col-xs-offset-2 col-xs-1 summerButton">
		            	<button class="btn btn-block btn-info btn-xs" id="searchBtn">搜索</button>
		            </div>
		            <div class="col-xs-2 summerButton">
		            	<button class="btn btn-success add btn-xs" type="button">+新增质量</button>
		            </div>
	          	</div>
	          </div>
	         </div>
	    	
			<div class="row">
				<div class="col-md-offset-2 col-md-8">
					<div class="box">
			            <div class="box-body" >
			              	<table id="quality_list" class="table table-bordered table-striped">
				                <thead>
					            	<tr>
					            		<th name="id">id</th>
                                        <th name="quality">质量标准</th>
					                  	<th>操作</th>
					                </tr>
				                </thead>
				                <tbody></tbody>
				                <tfoot></tfoot>
							</table>
						</div>
					</div>
				</div>
			</div>
	    </section>
	</div>
	
	<!-- footer -->
	<@netCommon.commonFooter />
</div>

<!-- account新增.模态框 -->
<div class="modal fade" id="addModal" tabindex="-1" role="dialog"  aria-hidden="true">
	<div class="modal-dialog modal-sm">
		<div class="modal-content">
			<div class="modal-header">
            	<h4 class="modal-title" >新增质量标准</h4>
         	</div>
         	<div class="modal-body">
				<form class="form-horizontal form" role="form" >
					<div class="form-group">
						<label for="username" class="col-sm-3 control-label">质量标准<font color="red">*</font></label>
						<div class="col-sm-7"><input type="text" class="form-control" name="quality" placeholder="请输入质量标准" maxlength="50"></div>
					</div>

                    <hr>
					<div class="form-group">
						<div class="col-sm-offset-5 col-sm-6">
							<button type="submit" class="btn btn-primary"  >保存</button>
							<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
						</div>
					</div>
				</form>
         	</div>
		</div>
	</div>
</div>

<!-- 更新.模态框 -->
<div class="modal fade" id="updateModal" tabindex="-1" role="dialog"  aria-hidden="true">
	<div class="modal-dialog modal-sm">
		<div class="modal-content">
			<div class="modal-header">
            	<h4 class="modal-title" >更新质量标准</h4>
         	</div>
         	<div class="modal-body">
				<form class="form-horizontal form" role="form" >
                    <div class="form-group">
						<label for="username" class="col-sm-3 control-label">质量标准<font color="red">*</font></label>
						<div class="col-sm-7"><input type="text" class="form-control" name="quality" placeholder="请输入质量标准" maxlength="50"></div>
					</div>
					<hr>
					<div class="form-group">
                        <div class="col-sm-offset-5 col-sm-6">
							<button type="submit" class="btn btn-primary"  >保存</button>
							<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <input type="hidden" name="id" >
						</div>
					</div>
				</form>
         	</div>
		</div>
	</div>
</div>

<@netCommon.commonScript />
<!-- DataTables -->
<script src="${request.contextPath}/static/adminlte/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="${request.contextPath}/static/adminlte/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script src="${request.contextPath}/static/plugins/jquery/jquery.validate.min.js"></script>
<script src="${request.contextPath}/static/js/quality.index.1.js"></script>
</body>
</html>
